//
//  ConstellationViewController.m
//  StarPosture
//
//  Created by 陈曦 on 15/9/7.
//  Copyright (c) 2015年 chenxi. All rights reserved.
//

#import "ConstellationViewController.h"
#import "ConstellationModel.h"


@interface ConstellationViewController ()

@property (nonatomic, strong) NSMutableArray *array;

@end

@implementation ConstellationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    
//    //网络
//    //获得统一资源定位符
//    NSURL *url = [NSURL URLWithString:@"http://star.zhuoyouapp.com/v1/forecastServer/getLuckDay?xz=%E5%8F%8C%E5%AD%90%E5%BA%A7&type=today"];
//    //1.请求
//    NSURLRequest *request = [NSURLRequest requestWithURL:url];
//    //2.接收与返回
//    [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
//        
//        NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:1 error:0];
//        
//        for (NSDictionary *entity in dic[@"entity"]) {
//            
//            ConstellationModel *model = [[ConstellationModel alloc] init];
//            
//            [model setValuesForKeysWithDictionary:entity];
//            
//            [self.array addObject:model];
//            
//        }
//        
//    }];
//    
//    
//    
//    
//    
    
    
    
    
    
    
    
    
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
